package com.wang.controller;

import com.wang.entity.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname UserController
 * @Description TODO
 * @Date 2024/5/31 10:54
 * @Created by pc
 */
@RestController
public class UserController {
    @RequestMapping("/find")
    public String find(){
        return "okfind";
    }

    @RequestMapping("/add")
    public String add(User user){
        System.out.println(user);
        return "add ok";
    }
}
